<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>小马网-以信任促成交易</title>
        <meta name="description" content="小马诚信中国服务商官网 安全联盟认证，安全可信网站认证，安全诚信网站认证，中国电子商务协会授权服务中心。小马诚信中国服务商是腾讯投资的一款专注于互联网风控和企业信誉征信的产品，提供QQ可信名片、可信网站认证、诚信网站认证、可信微站和品牌保护服务。" />
        <meta name="keywords" content="小马诚信中国服务商,品牌保护,安全联盟,免费网站认证,安全联盟认证,诚信网站认证,可信网站认证,企业征信,企业信誉认证,QQ可信名片,信誉V站,可信微站"/>

        <link rel="stylesheet" type="text/css" href="{{ asset('css/base.css') }}">
        <link rel="stylesheet" type="text/css" href="{{ asset('css/index.css') }}" media="all">
        <link rel="stylesheet" type="text/css" href="{{ asset('css/superslide.css') }}"/>
        <link rel="stylesheet" type="text/css" href="{{ asset('css/cert.css') }}"/>
        <script src="../js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
        <script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript" ></script>
        <link rel="shortcut icon" href="{{ asset('img/icon/favicon.ico') }}">
        <style type="text/css">
            .form {
                display: none
            }

            .form.on {
                display: block
            }

            #form-radio {
                margin: 15px 0 0 0
            }
             #kiss-form label{width: 11%;text-align: left;padding-left: 20px;float: left;height: 40px;line-height: 40px;}
	    	#kiss-form .kiss_fm_area {width: 30%;float: left;}
	    	#kiss-form input{width: 100%;height: 30px;border-radius: 6px;color: #3b3b3b;border: 1px solid #808080;outline: none;text-indent: 15px;}
	    	#kiss-form .kiss_fm_row{display:block;margin-bottom: 20px;}
	    	.kiss_fm_etip{color: red;margin: 0;font-size: 12px}
	    	.file { position: relative; display: inline-block; background: #D0EEFF; border: 1px solid #99D3F5; border-radius: 4px; padding: 4px 12px; overflow: hidden; color: #1E88C7; text-decoration: none; text-indent: 0; line-height: 20px; }
.file input { position: absolute; font-size: 100px; right: 0; top: 0; opacity: 0; }
.file:hover { background: #AADFFD; border-color: #78C3F3; color: #004974; text-decoration: none; }
        </style>
    </head>
    <body class="p_mng" style="background:#fff;">

        <div class="m-header-mng cf">
            <h1 class="fl m-logo pt15">
                <a href="/">
                    <img class="vam" width="46" height="46" src="{{ asset('img/index/LOGO.png')}}" alt="小马诚信中国服务商" />
                    <span class="fs18 dib vam">诚信用户中心</span>
                </a>
            </h1>
            <div class="back_page fl m_back_page">
                <a href="/"><i class="f_ppb">&#xe630;</i>返回小马诚信中国服务商首页</a>
            </div>
            <div class="fr" id="userAccount" data-href="/user_account/">
                @if (Auth::check())
                <div class="m-acount fr pr">
                    <strong class="_hd"><span><i class="f_ppb"></i></span></strong>
                    <ul class="pa r0 t100p wsn oh trans">
                        <li class="_user"><strong>{{Auth::user()->name}}</strong></li>
                        <li><a href="/cert">订单列表</a></li>
                        <li><a href="/logout">退出账号</a></li>
                    </ul>
                </div>
                @endif
            </div>
        </div>

        <i class="i_mng_side_bg"></i>
        <div id="manage_wrap" class="clearfix">
            @include('web.accounts.siderbar')
            <div class="manage_wrap">
                <div class="report-date" id="kiss-form">
                    <form action="" method="post" id="certification" novalidate="novalidate">
                        {{ csrf_field() }}
                        <input type="hidden" name="types" class="types" value="0"/>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt">公司注册号</b></label>
                            <div class="kiss_fm_area ">
                                <input verify="required" tap="请填写公司注册号" autocomplete="off" class=""id="id_applicant_email"
                                       maxlength="32" name="registration_number" spellcheck="false" value=""type="text">
                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                            </div>
                        </div>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt"></b>统一社会信用代码</label>
                            <div class="kiss_fm_area ">
                                <input verify="required" tap="请填写统一社会信用代码" autocomplete="off" class=""id="id_applicant_email"
                                       maxlength="32" name="unified_code" spellcheck="false" value=""type="text">
                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                            </div>
                        </div>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt"></b>公司注册地址</label>
                            <div class="kiss_fm_area ">
                                <input verify="required" tap="请填写公司注册地址" autocomplete="off" class=""id="id_applicant_email"
                                       maxlength="32" name="company_registered_address" spellcheck="false" value=""type="text">
                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                            </div>
                        </div>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt"></b>法定代表人</label>
                            <div class="kiss_fm_area ">
                                <input verify="required" tap="请填写法定代表人" autocomplete="off" class=""id="id_applicant_email"
                                       maxlength="32" name="legal_representative" spellcheck="false" value=""type="text">
                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                            </div>
                        </div>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt"></b>注册资本万人民币</label>
                            <div class="kiss_fm_area ">
                                <input verify="required" tap="请填写注册资本万人民币" autocomplete="off" class=""id="id_applicant_email"
                                       maxlength="32" name="registered_capital" spellcheck="false" value=""type="text">
                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                            </div>
                        </div>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt"></b>公司成立日期</label>
                            <div class="kiss_fm_area ">
                                <input verify="required" type="text" maxlength="32"  spellcheck="false" value="" name="company_registration_time" id="id_applicant_email" onclick="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                            </div>
                        </div>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt"></b>营业期限起止</label>
                            <div class="kiss_fm_area ">
                        <input verify="required" type="text" maxlength="32"  spellcheck="false" value="" name="operation_period_start" id="id_applicant_email" onclick="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                            </div>
                        </div>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt"></b>营业期限截止</label>
                            <div class="kiss_fm_area ">
                                <input verify="required" type="text" maxlength="32"  spellcheck="false" value="" name="operation_period_end" id="id_applicant_email" onclick="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                                

                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                            </div>
                        </div>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt"></b>营业范围</label>
                            <div class="kiss_fm_area ">
                                <input verify="required" tap="请填写营业范围" autocomplete="off" class=""id="id_applicant_email"
                                       maxlength="32" name="business_scope" spellcheck="false" value=""type="text">
                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                            </div>
                        </div>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt"></b>登记机关</label>
                            <div class="kiss_fm_area ">
                                <input verify="required" tap="请填写登记机关" autocomplete="off" class=""id="id_applicant_email"
                                       maxlength="32" name="registration_authority" spellcheck="false" value=""type="text">
                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                            </div>
                        </div>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt"></b>企业营业执照</label>
                            <div class="kiss_fm_area ">
                                <!--<input type="file" name="business_license"  tap="请上传企业营业执照" value="" />-->
                                <a href="javascript:;" class="file">选择文件
                                <input type="file" id="file" accept="image/png,image/gif" name="business_license" verify="required" value="" />
                                </a>
                                <p style="margin:0;color:#808080;" class="fileName"></p>
                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                                
                            </div>
                        </div>
                        <div class="kiss_fm_row clearfix">
                            <label class=" " for="id_applicant_email"><b class="mt"></b>身份证号码</label>
                            <div class="kiss_fm_area ">
                                <input verify="required" tap="请填写身份证号码" autocomplete="off" class=""id="id_applicant_email"
                                       maxlength="32" name="id_card" spellcheck="false" value=""type="text">
                                <i class="e_tip error_st"></i>
                                <div class="kiss_fm_etip e_tip"></div>
                            </div>
                        </div>
                        <div class="fm_summ">
                            <div class="kiss_fm_sb clearfix mt10" style="width:41%;text-align: center;">
                                <a class="kiss_btn kiss_sbtn_red part-btn" href="javascript:;" id="apply_btn" style=" color:#ffffff;background: #0090f8; padding: 10px;border-radius: 6px;">马上免费提交初审</a>
                            </div>
                        </div>
                        <input type="hidden" name="order_id" class="types" value="{{$order_id['order_id']}}"/>
                    </form>
                </div>
                <div class="footer_ph"></div>
            </div>
        </div>
        <div style="display: none">
            <div id="Dissatisy_box" class="kiss_modal modal_todo modal_warn" style="width:330px;">
                <div class="kiss_modal_hd"><i></i>提交审核前你还需要完善以下内容：</div>
                <div class="kiss_modal_con">
                    <div class="dissatisfy">
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>

</body>
</html>
<script src="../js/goTop.js" type="text/javascript" charset="utf-8"></script>
<!--<script src="../js/sheng-shi.js" type="text/javascript" charset="utf-8"></script>-->
<!--<script src="../js/www-class.js" type="text/javascript" charset="utf-8"></script>-->
<script src="../js/verify.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript">
    var POST_URL = "{{Route('ajaxmaterialsm')}}";
    var POST_SUCCESS = "{{Route('success')}}";
    $(function () {
        //获取表单所有input
        $(".error_st").css({"display": "none"})
        $(".kiss_fm_etip").css({"display": "none"})
        var fields = $("#certification :input");
        $("#apply_btn").on("click", function () {
            var File_Data = new FormData($("#certification")[0]);
            File_Data.append('resize', 'true');
            var verify = regular.charge(fields);
            if (verify) {
                $.ajax({
                    data: File_Data,
                    type: "POST",
                    url: POST_URL,
                    cache: false,
                    contentType: false,
                    processData: false,
                    dataType: "json",
                    beforeSend: function (xhr) {
                        //xhr.setRequestHeader("X-CSRF-TOKEN", "csrf_token");
                    },
                    success: function (ret) {
                        if (ret.error == true) {
                            alert(ret.message);
                        } else {
                            alert("提交成功");
                            location.href= "{{Route('cert')}}";
                        }
                        console.log(ret);
                    }
                });
            }
        });

//            var verify = 1;
//            if (verify) {
//                $.ajax({
//                    type: "POST",
//                    url: POST_URL,
//                    data: file_data,
//                    dataType: "json",
//                    success: function (data) {
//                        alert("提交成功");
//                    }
//                });

//                $('#certification').serialize()
//                $.ajax(POST_URL, file_data, function (data) {
//                    alert(data);
//                    console.log(data);
//                    return false;
//                    if (data == 1) {
//                        alert("提交成功");
//
//                    } else {
//                        alert("提交失败,请重试！");
//                    }
//                });
//            }
//        });
        // 注册事件
        $(fields).on("blur", function () {
            regular.charge(fields);
        });

        var fields1 = $("#apply1 :input");
        $("#apply_btn1").on("click", function () {
            var xx = regular.charge(fields1);
            if (xx) {
                $.post(POST_URL1, $('#apply1').serialize(), function (data) {
                    alert(data);
                    if (data == 1) {
                        alert("提交成功");
                    } else {
                        alert("提交失败,请重试！");
                    }
                });
            }
        });
        // 注册事件
        $(fields1).on("blur", function () {
            regular.charge(fields);
        });
        $("#form-radio input").on("click", function () {
            var _this = $(this);
            $("#form-box .form").removeClass("on");
            $("#" + _this.val()).addClass("on")
        })
    });
</script>
<script type="text/javascript">
$(function(){
    $("#file").on("change",function(){
        var fileName=$("#file").val();
       $(".fileName").html(fileName);
    })
    
})
</script>